import request from './http';
import {SsoJob} from "@/types/entity";

/**
 * 职位管理 前端接口
 */
export default class SsoJobApi {
  static page(data: SsoJob) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoJob/page/${index}/${size}`, vo);
  }

  static save(data: SsoJob) {
    return request.post<SsoJob>('/ssoJob', data);
  }

  static update(data: SsoJob) {
    return request.put<SsoJob>('/ssoJob', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoJob/delete', ids);
  }

  static list(data: SsoJob) {
    return request.post('/ssoJob/list', data);
  }

  static getById(id: number) {
    return request.get(`/ssoJob/get/${id}`);
  }


}
